本地OS: ubuntu 18SSH连接远程服务器时,提示如下:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: UNPROTECTED PRIVATE KEY FILE! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Permissions 0644 for '/home/VASTAI/kevinx/.ssh/vastai_rsa' are too open.It is required that your private key files are NOT accessible by others.This private key will be ignored.Load key "/home/VASTAI/kevinx/.ssh/vastai_rsa": bad [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.这是保存在~/.ssh目录下的私钥文件/home/VASTAI/kevinx/.ssh/vastai_rsa的访问权限太开放,修改该文件的权限为600即可,如下:
cd ~/.sshchmod 600 vastai_rsa
|